<script setup lang="ts">
import {useRouter} from 'vue-router'
defineProps({
  title: String
})
//页面返回
const router = useRouter()
const back = () => {
  router.go(-1)
}
</script>

<template>
  <img @click="back" class="public-back_img cursor-pointer" src="@/assets/publick-back.png" alt="" >
  <span @click="back" class="public-back_tit cursor-pointer">{{title}}</span>
</template>

<style scoped lang="less">
.public-back_img{
  width: 32px;
  height: 32px;
}
.public-back_tit{
  margin-left: 6px;
  color: transparent;
  background-image: linear-gradient(#EEEEEE 0%, #1EA0FF 100%);
  -webkit-background-clip: text;
  font-family: YouSheBiaoTiHei;
  font-size: 24px;
  line-height: 31px;
  font-style: normal;
  font-weight: bold;
}
</style>